]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Shuffle ifdef to fix !HAVE_SYSTEMD build
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 13 Feb 2022 09:56:28 +0000 (10:56 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 13 Feb 2022 12:06:11 +0000 (12:06 +0000)
The internal SystemdFlags enum is used from common code for
both systemd availability cases. Shuffle it outside the ifdef
so it's seen everywhere.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2177>

src/shell-util.c

index a336868130cb73b102af34532d5ef4558cd40b06..aeb81a1aa887f49f1c428e17a7573e4f6ca941d5 100644 (file)
@@ -515,12 +515,12 @@ shell_util_get_uid (void)
   return getuid ();
 }
 
-#ifdef HAVE_SYSTEMD
 typedef enum {
   SYSTEMD_CALL_FLAGS_NONE = 0,
   SYSTEMD_CALL_FLAGS_WATCH_JOB = 1 << 0,
 } SystemdFlags;
 
+#ifdef HAVE_SYSTEMD
 typedef struct {
   GDBusConnection *connection;
   gchar           *command;